index.html.vue 86 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340
  1. <template>
  2. <div>
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 页面导航 -->
  6. <HomePageNavigation></HomePageNavigation>
  7. <!-- 广告一 -->
  8. <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
  9. <!-- 二级导航列表 -->
  10. <div class="nav2top"></div>
  11. <div class="nav2">
  12. <ul class="inner">
  13. <li class="home">
  14. {{ title }}
  15. </li>
  16. <li class="titleList" v-for="(item, index) in pageData" :key="index">
  17. <NuxtLink :href="getLinkPath(item)" :title="item.alias">
  18. <span class="nav2_title">{{ item.alias }}</span>
  19. </NuxtLink>
  20. </li>
  21. </ul>
  22. </div>
  23. <div class="nav2btm"></div>
  24. <!-- 第一层 -->
  25. <!-- 第一部分 -->
  26. <div class="part1">
  27. <div class="inner">
  28. <div class="part1_left" v-if="pageData[0]">
  29. <div class="part1_title">
  30. <h2 class="nav_part1_left">
  31. <NuxtLink :href="getLinkPath(pageData[0])" v-if="pageData[0]" :title="pageData[0].alias">
  32. {{ pageData[0].alias }}
  33. </NuxtLink>
  34. <em></em>
  35. </h2>
  36. </div>
  37. <div class="part1_content">
  38. <div class="context_left">
  39. <div class="top" v-for="(item, index) in pageData[0].data" :key="index">
  40. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  41. <img :src="item.imgurl" alt="item.title">
  42. <span class="title1">{{ item.title }}</span>
  43. </NuxtLink>
  44. </div>
  45. <div class="bottom">
  46. <div class="bottom_left" v-for="(item, index) in pageData[0].data1" :key="index">
  47. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  48. <img :src="item.imgurl" alt="item.title">
  49. <span class="title2">{{ item.title }}</span>
  50. </NuxtLink>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="context_right">
  55. <ul class="rightContent">
  56. <li class="context1" v-for="(item, index) in pageData[0].data2" :key="index">
  57. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  58. {{ item.title }}
  59. </NuxtLink>
  60. </li>
  61. </ul>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="part1_right" v-if="pageData[1]">
  66. <div class="part1_right_title">
  67. <h2 class="part1_right_title1_active">
  68. <NuxtLink :href="getLinkPath(pageData[1])" v-if="pageData[1]" :title="pageData[1].alias">
  69. {{ pageData[1].alias }}
  70. </NuxtLink>
  71. <em class="active_bg"></em>
  72. </h2>
  73. </div>
  74. <div class="part1_right_content">
  75. <div class="part1_right_content_top" v-for="(item, index) in pageData[1].data" :key="index">
  76. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  77. <img :src="item.imgurl" alt="item.title">
  78. <span class="content_top_title2">{{ item.title }}</span>
  79. </NuxtLink>
  80. </div>
  81. <ul class="part1_right_content_bottom">
  82. <li class="content_bottom_list" v-for="(item, index) in pageData[1].data1" :key="index">
  83. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  84. {{ item.title }}
  85. </NuxtLink>
  86. </li>
  87. </ul>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <!-- 第二部分 -->
  93. <div class="part2">
  94. <div class="inner">
  95. <div class="part2_left" v-if="pageData[2]">
  96. <div class="part2_title">
  97. <h2 class="nav_part2_left">
  98. <NuxtLink :href="getLinkPath(pageData[2])" v-if="pageData[2]" :title="pageData[2].alias">
  99. {{ pageData[2].alias }}
  100. </NuxtLink>
  101. <em></em>
  102. </h2>
  103. </div>
  104. <div class="part2_content">
  105. <div class="part2_content_left">
  106. <ul class="content_a">
  107. <li class="context111" v-for="(item, index) in pageData[2].data2" :key="index">
  108. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  109. {{ item.title }}
  110. </NuxtLink>
  111. </li>
  112. </ul>
  113. </div>
  114. <div class="part2_content_right">
  115. <div class="right_top" v-for="(item, index) in pageData[2].data" :key="index">
  116. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  117. <img :src="item.imgurl" alt="item.title">
  118. <span class="title11">{{ item.title }}</span>
  119. </NuxtLink>
  120. </div>
  121. <div class="right_bottom">
  122. <div class="bottom_left" v-for="(item, index) in pageData[2].data1" :key="index">
  123. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  124. <img :src="item.imgurl" alt="item.title">
  125. <span class="title22">{{ item.title }}</span>
  126. </NuxtLink>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="part2_right" v-if="pageData[3]">
  133. <div class="part2_right_title">
  134. <h2 class="part2_right_title1_active">
  135. <NuxtLink :href="getLinkPath(pageData[3])" v-if="pageData[3]" :title="pageData[3].alias">
  136. {{ pageData[3].alias }}
  137. </NuxtLink>
  138. <em class="active_bg11"></em>
  139. </h2>
  140. </div>
  141. <div class="part2_right_content">
  142. <div class="part2_right_content_top" v-for="(item, index) in pageData[3].data" :key="index">
  143. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  144. <img :src="item.imgurl" alt="item.title">
  145. <span class="content_top_title22">{{ item.title }}</span>
  146. </NuxtLink>
  147. </div>
  148. <ul class="part2_right_content_bottom">
  149. <li class="content_bottom_list" v-for="(item, index) in pageData[3].data2" :key="index">
  150. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  151. {{ item.title }}
  152. </NuxtLink>
  153. </li>
  154. </ul>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <!-- 广告二 -->
  160. <HomeAdvertising :imgurl="adImg2"></HomeAdvertising>
  161. <!-- 第二层 -->
  162. <div class="part3" v-if="pageData[4]">
  163. <div class="inner">
  164. <div class="part3_left">
  165. <div class="part3_left_top" v-if="pageData[4]">
  166. <div class="part3_leftTitle">
  167. <h2 class="part3_left_title">
  168. <NuxtLink :href="getLinkPath(pageData[4])" v-if="pageData[4]"
  169. :title="pageData[4].alias">
  170. {{ pageData[4].alias }}
  171. </NuxtLink>
  172. <em></em>
  173. </h2>
  174. </div>
  175. <div class="part3_left_content" v-if="pageData[4]">
  176. <div class="part3_left_content_top">
  177. <div class="content_top_left">
  178. <div class="part3_photo_text" v-for="(item, index) in pageData[4].data"
  179. :key="index">
  180. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  181. <img :src="item.imgurl" alt="item.title">
  182. <span class="part3_text">{{ item.title }}</span>
  183. </NuxtLink>
  184. <span class="littleTips">精选</span>
  185. </div>
  186. <ul class="part3_content">
  187. <li class="part3_content_list" v-for="(item, index) in pageData[4].data1"
  188. :key="index">
  189. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  190. {{ item.title }}
  191. </NuxtLink>
  192. </li>
  193. </ul>
  194. </div>
  195. <ul class="content_top_right">
  196. <li class="content_right_list" v-for="(item, index) in pageData[4].data1"
  197. :key="index">
  198. <NuxtLink to="#">
  199. <div class="part3_time">
  200. <span class="month">{{ getTime(item.updated_at, 'day', 1) }}</span>
  201. <span class="xiegang">/</span>
  202. <span class="day">{{ getTime(item.updated_at, 'month', 1) }}</span>
  203. </div>
  204. <div class="time_left_content">
  205. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  206. {{ item.title }}
  207. </NuxtLink>
  208. </div>
  209. </NuxtLink>
  210. </li>
  211. </ul>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="part3_left_bottom" v-if="pageData[5] || pageData[6]">
  216. <div class="part3_leftTitle1">
  217. <h2 class="part3_left_title" v-if="pageData[5]" @mouseenter="tabsData = 1"
  218. :class="{ part3_left_title_active: tabsData == 1 }">
  219. <NuxtLink :href="getLinkPath(pageData[5])" @mouseenter="tabsData = 1"
  220. :class="{ active: tabsData == 1 }" :title="pageData[5].alias">
  221. {{ pageData[5].alias }}
  222. </NuxtLink>
  223. <em></em>
  224. </h2>
  225. <h2 class="part3_left_title" v-if="pageData[6]" @mouseenter="tabsData = 2"
  226. :class="{ part3_left_title_active: tabsData == 2 }">
  227. <NuxtLink :href="getLinkPath(pageData[6])" v-if="pageData[6]" @mouseenter="tabsData = 2"
  228. :class="{ active: tabsData == 2 }" :title="pageData[6].alias">
  229. {{ pageData[6].alias }}
  230. </NuxtLink>
  231. <em></em>
  232. </h2>
  233. </div>
  234. <div class="part3_left_content1" v-if="tabsData == 1">
  235. <div class="content_bottom_left">
  236. <div class="content_top" v-for="(item, index) in pageData[5].data" :key="index">
  237. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  238. <img :src="item.imgurl" alt="item.title">
  239. <span class="part3_text">{{ item.title }}</span>
  240. </NuxtLink>
  241. </div>
  242. <div class="content_bottom">
  243. <div class="content_bottom_1" v-for="(item, index) in pageData[5].data1"
  244. :key="index">
  245. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  246. <img :src="item.imgurl" alt="item.title">
  247. <span class="part3_text">{{ item.title }}</span>
  248. </NuxtLink>
  249. </div>
  250. </div>
  251. </div>
  252. <div class="content_bottom_right">
  253. <ul class="bottom_content_1">
  254. <li class="bottom_content_list" v-for="(item, index) in pageData[5].data2"
  255. :key="index">
  256. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  257. {{ item.title }}
  258. </NuxtLink>
  259. </li>
  260. </ul>
  261. </div>
  262. </div>
  263. <div class="part3_left_content1" v-if="tabsData == 2 && pageData[6].alias">
  264. <div class="content_bottom_left">
  265. <div class="content_top" v-for="(item, index) in pageData[6].data" :key="index">
  266. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  267. <img :src="item.imgurl" alt="item.title">
  268. <span class="part3_text">{{ item.title }}</span>
  269. </NuxtLink>
  270. </div>
  271. <div class="content_bottom">
  272. <div class="content_bottom_1" v-for="(item, index) in pageData[6].data1"
  273. :key="index">
  274. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  275. <img :src="item.imgurl" alt="item.title">
  276. <span class="part3_text">{{ item.title }}</span>
  277. </NuxtLink>
  278. </div>
  279. </div>
  280. </div>
  281. <div class="content_bottom_right">
  282. <ul class="bottom_content_1">
  283. <li class="bottom_content_list" v-for="(item, index) in pageData[6].data2"
  284. :key="index">
  285. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  286. {{ item.title }}
  287. </NuxtLink>
  288. </li>
  289. </ul>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="part3_right" v-if="pageData[7]">
  295. <div class="part3_rightTitle">
  296. <h2 class="part3_right_title">
  297. <NuxtLink :href="getLinkPath(pageData[7])" v-if="pageData[7]" :title="pageData[7].alias">
  298. {{ pageData[7].alias }}
  299. </NuxtLink>
  300. <em></em>
  301. </h2>
  302. <div class="rightMore">
  303. <NuxtLink to="#">更多》</NuxtLink>
  304. </div>
  305. </div>
  306. <ul class="part3_right_content_top" v-if="pageData[7].data1.length > 0">
  307. <li class="part3_right_contentlist_top" v-for="(item, index) in pageData[7].data1" :key="index">
  308. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  309. <span class="numStyle">{{ index + 1 }}</span>
  310. {{ item.title }}
  311. </NuxtLink>
  312. </li>
  313. </ul>
  314. <div class="part3_photo_text_right" v-if="pageData[7].data[0]">
  315. <NuxtLink :href="getLinkPathDetail(pageData[7].data[0])" :title="pageData[7].data[0].title">
  316. <span class="part3_text11">{{ pageData[7].data[0].title }}</span>
  317. <img :src="pageData[7].data[0].imgurl" :alt="pageData[7].data[0].title">
  318. </NuxtLink>
  319. </div>
  320. <ul class="part3_right_content_11" v-if="pageData[7].data2.length > 0">
  321. <li class="part3_right_contentlist_11" v-for="(item, index) in pageData[7].data2" :key="index">
  322. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  323. {{ item.title }}
  324. </NuxtLink>
  325. </li>
  326. </ul>
  327. <div class="part3_photo_text_right" v-if="pageData[7].data[1]">
  328. <NuxtLink :href="getLinkPathDetail(pageData[7].data[1])" :title="pageData[7].data[1].title">
  329. <span class="part3_text11">{{ pageData[7].data[1].title }}</span>
  330. <img :src="pageData[7].data[1].imgurl" :alt="pageData[7].data[1].title">
  331. </NuxtLink>
  332. </div>
  333. <ul class="part3_right_content_11">
  334. <li class="part3_right_contentlist_11" v-for="(item, index) in pageData[7].data3" :key="index">
  335. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  336. {{ item.title }}
  337. </NuxtLink>
  338. </li>
  339. </ul>
  340. <div class="part3_photo_text_right" v-if="pageData[7].data[2]">
  341. <NuxtLink :href="getLinkPathDetail(pageData[7].data[2])" :title="pageData[7].data[2].title">
  342. <span class="part3_text11">{{ pageData[7].data[2].title }}</span>
  343. <img :src="pageData[7].data[2].imgurl" :alt="pageData[7].data[2].title">
  344. </NuxtLink>
  345. </div>
  346. <ul class="part3_right_content_11">
  347. <li class="part3_right_contentlist_11" v-for="(item, index) in pageData[7].data4" :key="index">
  348. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  349. {{ item.title }}
  350. </NuxtLink>
  351. </li>
  352. </ul>
  353. </div>
  354. </div>
  355. </div>
  356. <!-- 页脚部分 -->
  357. <HomeFoot1></HomeFoot1>
  358. </div>
  359. </template>
  360. <script setup>
  361. //0.加载页面依赖 start ---------------------------------------->
  362. import { ref, onMounted } from 'vue';
  363. //格式化跳转路径 - 标题
  364. //首页分类栏目标题,不需要考虑外链
  365. const getLinkPath = (item) => {
  366. // console.log('item111',item)
  367. // return `/${item.url}/1.html`;
  368. // return `/newsList/${item.cid}?page=1`;
  369. return `/${item.aLIas_pinyin}/list-1.html`;
  370. }
  371. //首页跳转到详情,这里需要考虑外链
  372. const getLinkPathDetail = (item) => {
  373. console.log('item111', item)
  374. if (item.islink == 1) {
  375. return `${item.linkurl}`;
  376. } else {
  377. //return `/${item.aLIas_pinyin}/${item.id}`;
  378. // return `/newsDetail/${item.id}?page=1`
  379. return `/${item.pinyin}/${item.id}.html`;
  380. }
  381. }
  382. //0.加载页面依赖 end ---------------------------------------->
  383. //1.获得路由id start ---------------------------------------->
  384. const route = useRoute();
  385. //获得当前的完整路径
  386. const fullPath = route.path;
  387. //拆分,取出来中间这一段,然后提取数字部分
  388. const segments = fullPath.split('/');
  389. const targetSegment = segments[1];
  390. //let routeId = 11 //排除路径错误可以打开这个
  391. //const numberPart = targetSegment.match(/\d+$/)?.[0];
  392. //let routeId = numberPart;
  393. let routeId;
  394. //通过导航路径反向查询导航id
  395. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  396. method: 'GET',
  397. query: {
  398. 'pinyin': targetSegment,
  399. },
  400. });
  401. if (getRouteId.code == 200) {
  402. routeId = getRouteId.data.category_id
  403. } else {
  404. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  405. console.log("错误位置:通过url路径查询导航池id")
  406. console.log("后端错误反馈:", getRouteId.message)
  407. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  408. }
  409. //1.获得路由id end ---------------------------------------->
  410. //2.页面交互效果 start ---------------------------------------->
  411. //2.1
  412. const title = ref("")
  413. const tabsData = ref(1)
  414. async function getPageDataTitle() {
  415. const mkdata = await requestDataPromise('/web/getOneWebsiteCategory', {
  416. method: 'GET',
  417. query: {
  418. 'catid': routeId,
  419. },
  420. });
  421. if (mkdata.code == 200) {
  422. title.value = mkdata.data.alias;
  423. } else {
  424. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  425. console.log("错误位置:获取二级标题")
  426. console.log("后端错误反馈:", mkdata.message)
  427. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  428. }
  429. }
  430. getPageDataTitle();
  431. //2.1 新闻图片切换
  432. const hoverStatus = ref(0)
  433. const qhPic = function (num) {
  434. console.log(num)
  435. hoverStatus.value = num;
  436. }
  437. //2.2 选项卡切换
  438. let showTabs = ref(1)
  439. let qhtabs = function (number) {
  440. console.log(number)
  441. showTabs.value = number
  442. }
  443. //2.3 展示广告
  444. let adImg1 = ref({})
  445. let adImg2 = ref({})
  446. let adImg3 = ref({})
  447. let adImg4 = ref({})
  448. onMounted(async () => {
  449. //从客户端获取行政职能部门 加快打开速度
  450. const { $webUrl, $CwebUrl } = useNuxtApp();
  451. //广告1
  452. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0001`
  453. const responseAd1 = await fetch(url, {
  454. headers: {
  455. 'Content-Type': 'application/json',
  456. 'Userurl': $CwebUrl,
  457. 'Origin': $CwebUrl
  458. }
  459. });
  460. const resultAd1 = await responseAd1.json();
  461. adImg1.value = resultAd1.data[0];
  462. //广告2
  463. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0002`
  464. const responseAd2 = await fetch(url2, {
  465. headers: {
  466. 'Content-Type': 'application/json',
  467. 'Userurl': $CwebUrl,
  468. 'Origin': $CwebUrl
  469. }
  470. });
  471. const resultAd2 = await responseAd2.json();
  472. adImg2.value = resultAd2.data[0];
  473. //广告3
  474. let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0003`
  475. const responseAd3 = await fetch(url3, {
  476. headers: {
  477. 'Content-Type': 'application/json',
  478. 'Userurl': $CwebUrl,
  479. 'Origin': $CwebUrl
  480. }
  481. });
  482. const resultAd3 = await responseAd3.json();
  483. adImg3.value = resultAd3.data[0];
  484. //广告4
  485. let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0004`
  486. const responseAd4 = await fetch(url4, {
  487. headers: {
  488. 'Content-Type': 'application/json',
  489. 'Userurl': $CwebUrl,
  490. 'Origin': $CwebUrl
  491. }
  492. });
  493. const resultAd4 = await responseAd4.json();
  494. adImg4.value = resultAd4.data[0];
  495. })
  496. //2.页面交互效果 end ---------------------------------------->
  497. //3.渲染页面数据 start ---------------------------------------->
  498. //3.1 该页面上所有的导航池 转为动态数据
  499. const pageCategory = ref([]);
  500. //3.2 该页面上需要渲染的所有数据
  501. const pageData = ref([
  502. // { id: 0, data: [], data2: [], title: "", cid: "" },
  503. // { id: 1, data: [], title: "", cid: "" },
  504. // { id: 2, data: [], title: "", cid: "" },
  505. // { id: 3, data: [], title: "", cid: "" },
  506. // { id: 4, data: [], title: "", cid: "" },
  507. // { id: 5, data: [], title: "", cid: "" },
  508. // { id: 6, data: [], title: "", cid: "" },
  509. // { id: 7, data: [], title: "", cid: "" },
  510. // { id: 8, data: [], title: "", cid: "" },
  511. ])
  512. const navSize = ref("");
  513. //3.3 获取所有导航
  514. try {
  515. const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
  516. method: 'GET',
  517. query: {
  518. 'placeid': 1,
  519. 'pid': routeId,
  520. 'num': 8
  521. },
  522. });
  523. if (navigateData.code == 200) {
  524. // 遍历可用的导航池放到页面中
  525. for (let index in navigateData.data) {
  526. let data = {
  527. title: navigateData.data[index].name,
  528. cid: navigateData.data[index].category_id,
  529. children_count: navigateData.data[index].children_count,
  530. alias: navigateData.data[index].alias,
  531. aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
  532. data: [],
  533. data1: [],
  534. data2: [],
  535. data3: [],
  536. data4: [],
  537. category_id1: "",
  538. category_id2: "",
  539. category_id3: "",
  540. category_id4: "",
  541. title1: "",
  542. title2: "",
  543. title3: "",
  544. title4: ""
  545. };
  546. if (navigateData.data[index].is_url == 1) {
  547. // 处理 URL 的逻辑
  548. } else {
  549. //每个页面最多8个模块
  550. pageData.value.push(data);
  551. }
  552. }
  553. //导航池加载完毕,开始申请模块数据
  554. // await getPageData1();
  555. // await getPageData2();
  556. // await getPageData3();
  557. // await getPageData4();
  558. // await getPageData5();
  559. // await getPageData6();
  560. // await getPageData7();
  561. // await getPageData8();
  562. let getJson = [
  563. { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",3,10" },//模块1理论前沿
  564. { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",2,6" },//模块2典型经验
  565. { "parent": routeId + ",0,0", "child": pageData.value[2].cid + ",3,10" },//模块3农业天地
  566. { "parent": routeId + ",0,0", "child": pageData.value[3].cid + ",2,6" },//模块4美丽乡村
  567. { "parent": routeId + ",0,0", "child": pageData.value[4].cid + ",1,10" },//模块5农民之家
  568. { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",3,10" },//模块6农业天地
  569. { "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",3,10" },//模块7农村建设
  570. { "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",3,13" },//模块8高端资讯
  571. ]
  572. let jsonString = JSON.stringify(getJson);
  573. getPageAllData(jsonString);
  574. } else {
  575. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  576. console.log("错误位置:分类页导航池")
  577. console.log("后端错误反馈:", navigateData.message)
  578. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  579. }
  580. } catch (error) {
  581. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  582. console.log("错误位置:分类页导航渲染阶段")
  583. console.log("错误:导航池渲染执行接口出错!请检查首页的14的模块的具体执行方法!")
  584. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  585. }
  586. async function getPageAllData(jsonString) {
  587. const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
  588. method: 'GET',
  589. query: {
  590. 'id': jsonString
  591. },
  592. });
  593. if (mkdata.code == 200) {
  594. console.log(778899)
  595. console.log(mkdata.data)
  596. //模块1理论前沿
  597. if (mkdata.data[0].child.imgnum.length > 0) {
  598. pageData.value[0].data.push(mkdata.data[0].child.imgnum[0]);
  599. }
  600. if (mkdata.data[0].child.imgnum.length > 1) {
  601. pageData.value[0].data1.push(mkdata.data[0].child.imgnum[1]);
  602. }
  603. if (mkdata.data[0].child.imgnum.length > 2) {
  604. pageData.value[0].data1.push(mkdata.data[0].child.imgnum[2]);
  605. }
  606. pageData.value[0].data2 = mkdata.data[0].child.textnum;
  607. //模块2典型经验
  608. pageData.value[1].data = mkdata.data[1].child.imgnum;
  609. pageData.value[1].data1 = mkdata.data[1].child.textnum;
  610. //模块3农业天地
  611. if (mkdata.data[2].child.imgnum.length > 0) {
  612. pageData.value[2].data.push(mkdata.data[2].child.imgnum[0]);
  613. }
  614. if (mkdata.data[2].child.imgnum.length > 1) {
  615. pageData.value[2].data1.push(mkdata.data[2].child.imgnum[1]);
  616. }
  617. if (mkdata.data[2].child.imgnum.length > 2) {
  618. pageData.value[2].data1.push(mkdata.data[2].child.imgnum[2]);
  619. }
  620. pageData.value[2].data2 = mkdata.data[2].child.textnum;
  621. //模块4美丽乡村
  622. pageData.value[3].data = mkdata.data[3].child.imgnum;
  623. pageData.value[3].data2 = mkdata.data[3].child.textnum;
  624. //模块5农民之家
  625. pageData.value[4].data = mkdata.data[4].child.imgnum;
  626. for (let i in mkdata.data[4].child.textnum) {
  627. if (i < 5) {
  628. pageData.value[4].data1.push(mkdata.data[4].child.textnum[i]);
  629. } else {
  630. pageData.value[4].data2.push(mkdata.data[4].child.textnum[i]);
  631. }
  632. }
  633. //模块6农业天地
  634. if (mkdata.data[5].child.imgnum.length > 0) {
  635. pageData.value[5].data.push(mkdata.data[5].child.imgnum[0]);
  636. }
  637. if (mkdata.data[5].child.imgnum.length > 1) {
  638. pageData.value[5].data1.push(mkdata.data[5].child.imgnum[1]);
  639. }
  640. if (mkdata.data[5].child.imgnum.length > 2) {
  641. pageData.value[5].data1.push(mkdata.data[5].child.imgnum[2]);
  642. }
  643. pageData.value[5].data2 = mkdata.data[5].child.textnum;
  644. //模块7农村建设
  645. if (mkdata.data[6].child.imgnum.length > 0) {
  646. pageData.value[6].data.push(mkdata.data[6].child.imgnum[0]);
  647. }
  648. if (mkdata.data[6].child.imgnum.length > 1) {
  649. pageData.value[6].data1.push(mkdata.data[6].child.imgnum[1]);
  650. }
  651. if (mkdata.data[6].child.imgnum.length > 2) {
  652. pageData.value[6].data1.push(mkdata.data[6].child.imgnum[2]);
  653. }
  654. pageData.value[6].data2 = mkdata.data[6].child.textnum;
  655. //模块8高端资讯
  656. pageData.value[7].data2 = mkdata.data[7].child.imgnum;
  657. for (let i in mkdata.data[4].child.textnum) {
  658. if (i < 7) {
  659. pageData.value[7].data1.push(mkdata.data[4].child.textnum[i]);
  660. } else if (i < 9) {
  661. pageData.value[7].data2.push(mkdata.data[4].child.textnum[i]);
  662. } else if (i < 11) {
  663. pageData.value[7].data3.push(mkdata.data[4].child.textnum[i]);
  664. } else {
  665. pageData.value[7].data4.push(mkdata.data[4].child.textnum[i]);
  666. }
  667. }
  668. } else {
  669. ElMessage.error(mkdata.message)
  670. }
  671. }
  672. //获得模块数据
  673. // async function getPageData(catid, img_num, text_num, modulesNum, childNavNum, childImgNum, childTextNum) {
  674. // const mkdata = await requestDataPromise('/web/getWebsiteCatidArticle', {
  675. // method: 'GET',
  676. // query: {
  677. // 'catid': catid, //catid
  678. // 'img_num': img_num, //图片数量
  679. // 'text_num': text_num, //文字数量
  680. // 'child_catnum': childNavNum,//子级栏目菜单数量
  681. // 'child_imgnum': childImgNum,//子栏目展示图片新闻数量
  682. // 'child_textnum': childTextNum//子栏目展示文字新闻数量
  683. // },
  684. // });
  685. // if (modulesNum == 1) {
  686. // for (let i in mkdata.data.img) {
  687. // if (i < 1) {
  688. // pageData.value[0].data.push(mkdata.data.img[i]);
  689. // } else {
  690. // pageData.value[0].data1.push(mkdata.data.img[i]);
  691. // }
  692. // }
  693. // pageData.value[0].data2 = mkdata.data.text;
  694. // }
  695. // if (modulesNum == 2) {
  696. // pageData.value[1].data = mkdata.data.img;
  697. // pageData.value[1].data1 = mkdata.data.text;
  698. // }
  699. // if (modulesNum == 3) {
  700. // for (let i in mkdata.data.img) {
  701. // if (i < 1) {
  702. // pageData.value[2].data.push(mkdata.data.img[i]);
  703. // } else {
  704. // pageData.value[2].data1.push(mkdata.data.img[i]);
  705. // }
  706. // }
  707. // pageData.value[2].data2 = mkdata.data.text;
  708. // }
  709. // if (modulesNum == 4) {
  710. // pageData.value[3].data = mkdata.data.img;
  711. // pageData.value[3].data2 = mkdata.data.text;
  712. // }
  713. // //模块5
  714. // if (modulesNum == 5) {
  715. // pageData.value[4].data = mkdata.data.img;
  716. // for (let i in mkdata.data.text) {
  717. // if (i < 5) {
  718. // pageData.value[4].data1.push(mkdata.data.text[i]);
  719. // } else {
  720. // pageData.value[4].data2.push(mkdata.data.text[i]);
  721. // }
  722. // }
  723. // }
  724. // if (modulesNum == 6) {
  725. // for (let i in mkdata.data.img) {
  726. // if (i < 1) {
  727. // pageData.value[5].data.push(mkdata.data.img[i]);
  728. // } else {
  729. // pageData.value[5].data1.push(mkdata.data.img[i]);
  730. // }
  731. // }
  732. // pageData.value[5].data2 = mkdata.data.text;
  733. // }
  734. // if (modulesNum == 7) {
  735. // for (let i in mkdata.data.img) {
  736. // if (i < 1) {
  737. // pageData.value[6].data.push(mkdata.data.img[i]);
  738. // } else {
  739. // pageData.value[6].data1.push(mkdata.data.img[i]);
  740. // }
  741. // }
  742. // pageData.value[6].data2 = mkdata.data.text;
  743. // }
  744. // //模块8
  745. // if (modulesNum == 8) {
  746. // pageData.value[7].data = mkdata.data.img;
  747. // for (let i in mkdata.data.text) {
  748. // if (i < 7) {
  749. // pageData.value[7].data1.push(mkdata.data.text[i]);
  750. // } else if (i < 9) {
  751. // pageData.value[7].data2.push(mkdata.data.text[i]);
  752. // } else if (i < 11) {
  753. // pageData.value[7].data3.push(mkdata.data.text[i]);
  754. // } else {
  755. // pageData.value[7].data4.push(mkdata.data.text[i]);
  756. // }
  757. // }
  758. // }
  759. // }
  760. //新农村
  761. //模块1 理论前沿
  762. // async function getPageData1() {
  763. // await getPageData(pageData.value[0].cid, 3, 10, 1, 0, 0, 0);
  764. // }
  765. // //模块2 典型经验
  766. // async function getPageData2() {
  767. // await getPageData(pageData.value[1].cid, 2, 6, 2, 0, 0, 0);
  768. // }
  769. // //模块3 农业天地
  770. // async function getPageData3() {
  771. // await getPageData(pageData.value[2].cid, 3, 10, 3, 0, 0, 0);
  772. // }
  773. // //模块4 美丽乡村
  774. // async function getPageData4() {
  775. // await getPageData(pageData.value[3].cid, 2, 6, 4, 0, 0, 0);
  776. // }
  777. // //模块5 农民之家
  778. // async function getPageData5() {
  779. // await getPageData(pageData.value[4].cid, 1, 10, 5, 0, 0, 0);
  780. // }
  781. // //模块6 农业天地
  782. // async function getPageData6() {
  783. // await getPageData(pageData.value[5].cid, 3, 10, 6, 0, 0, 0);
  784. // }
  785. // //模块7 农村建设
  786. // async function getPageData7() {
  787. // await getPageData(pageData.value[6].cid, 3, 10, 7, 0, 0, 0);
  788. // }
  789. // //模块8 高端资讯
  790. // async function getPageData8() {
  791. // await getPageData(pageData.value[7].cid, 3, 13, 8, 0, 0, 0);
  792. // }
  793. // 注意,为了保持模块的数量,当前固定为8个
  794. // 所以这里的农业天地,合并了原来是下面的7号模块
  795. // 而原本是7号模块的地方现在变成了8号模块
  796. //3.渲染页面数据 end ---------------------------------------->
  797. //4.设置seo信息 start---------------------------------------->
  798. //4.1 设置seo信息
  799. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  800. method: 'GET',
  801. query: {
  802. 'catid': routeId
  803. },
  804. });
  805. if (setData.code == 200) {
  806. let seoTitle = setData.data.seo_title;
  807. let seoDescription = setData.data.seo_description;
  808. let seoKeywords = setData.data.seo_keywords;
  809. let seoSuffix = setData.data.suffix;
  810. let seoName = setData.data.website_name;
  811. useSeoMeta({
  812. title: seoTitle + "_" + seoSuffix,
  813. meta: [
  814. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  815. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  816. ]
  817. });
  818. } else {
  819. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  820. console.log("错误位置:设置分类页面SEO数据")
  821. console.log("后端错误反馈:", setData.message)
  822. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  823. }
  824. //4.设置seo信息 end---------------------------------------->
  825. //5. 获取日期中单独的年 月 日 start--------------------------->
  826. function getTime(date, part, digits) {
  827. const d = new Date(date);
  828. if (part === 'year') {
  829. let year = d.getFullYear();
  830. if (digits === 2) {
  831. return String(year).slice(-2);
  832. }
  833. return year;
  834. } else if (part === 'month') {
  835. let month = d.getMonth() + 1;
  836. if (digits === 2) {
  837. return String(month).padStart(2, '0');
  838. }
  839. if (month < 10) {
  840. month = '0' + month;
  841. } else {
  842. month = month;
  843. }
  844. return month;
  845. } else if (part === 'day') {
  846. let day = d.getDate();
  847. if (digits === 2) {
  848. return String(day).padStart(2, '0');
  849. }
  850. return day;
  851. }
  852. return null;
  853. }
  854. //5. 获取日期中单独的年 月 日 end------------------------------>
  855. </script>
  856. <style lang="less" scoped>
  857. // 一级标题
  858. .nav1 {
  859. width: 100%;
  860. height: 214px;
  861. background: #fff;
  862. .inner {
  863. width: 1200px;
  864. height: 214px;
  865. margin: 0 auto;
  866. .nav1_title {
  867. width: 1120px;
  868. height: 214px;
  869. margin-left: 40px;
  870. line-height: 217px;
  871. text-align: center;
  872. font-family: DingTalk JinBuTi, DingTalk JinBuTi;
  873. font-weight: 400;
  874. font-size: 50px;
  875. color: #6D2512;
  876. background: url(/_nuxt/public/index/title_bg.png) no-repeat 0;
  877. }
  878. }
  879. }
  880. .nav2top {
  881. width: 1250px;
  882. height: 3px;
  883. margin: 0 auto;
  884. background-color: #a01c0e;
  885. }
  886. .nav2btm {
  887. width: 1200px;
  888. height: 3px;
  889. margin: 0 auto;
  890. background-color: #a01c0e;
  891. }
  892. .nav2 {
  893. width: 100%;
  894. height: 48px;
  895. background-color: #a01c0e;
  896. .inner {
  897. width: 1250px;
  898. height: 48px;
  899. line-height: 48px;
  900. padding: 0 45px;
  901. margin: 0 auto;
  902. box-sizing: border-box;
  903. display: flex;
  904. // justify-content: space-between;
  905. .titleList {
  906. font-family: Microsoft YaHei, Microsoft YaHei;
  907. font-weight: bold;
  908. font-size: 14px;
  909. color: #FFFFFF;
  910. .nav2_title {
  911. display: inline-block;
  912. font-family: Microsoft YaHei, Microsoft YaHei;
  913. font-weight: bold;
  914. font-size: 14px;
  915. color: #FFFFFF;
  916. }
  917. a {
  918. padding: 0 38px;
  919. color: #FFFFFF;
  920. border-left: 1px solid #7E1C11;
  921. }
  922. //鼠标点击后的样式
  923. .nav2_title_active {
  924. display: inline-block;
  925. font-family: Microsoft YaHei, Microsoft YaHei;
  926. font-weight: bold;
  927. font-size: 14px;
  928. color: #FFFFFF;
  929. border-bottom: 1px solid #FFFFFF;
  930. }
  931. }
  932. .titleList:hover {
  933. a {
  934. color: #a01c0e;
  935. .nav2_title {
  936. border-bottom: 1px solid #FFFFFF;
  937. }
  938. }
  939. }
  940. .home {
  941. width: 100px;
  942. font-family: Microsoft YaHei, Microsoft YaHei;
  943. font-weight: bold;
  944. font-size: 14px;
  945. color: #F8ECD2;
  946. }
  947. }
  948. }
  949. //第一部分
  950. .part1 {
  951. width: 100%;
  952. height: 585px;
  953. margin-top: 35px;
  954. .inner {
  955. width: 1200px;
  956. margin: 0 auto;
  957. .part1_left {
  958. float: left;
  959. width: 720px;
  960. .part1_title {
  961. width: 720px;
  962. height: 50px;
  963. line-height: 50px;
  964. .nav_part1_left {
  965. float: left;
  966. font-family: Microsoft YaHei, Microsoft YaHei;
  967. font-weight: 400;
  968. font-size: 20px;
  969. color: #333333;
  970. position: relative;
  971. a {
  972. color: #333333;
  973. }
  974. em {
  975. display: inline-block;
  976. width: 8px;
  977. height: 8px;
  978. background-color: #a01c0e;
  979. border-radius: 4px;
  980. position: absolute;
  981. top: 5px;
  982. }
  983. }
  984. }
  985. .part1_content {
  986. width: 720px;
  987. margin-top: 20px;
  988. .context_left {
  989. float: left;
  990. width: 350px;
  991. .top {
  992. width: 350px;
  993. img {
  994. width: 350px;
  995. height: 230px;
  996. }
  997. a .title1 {
  998. margin-top: 15px;
  999. width: 350px;
  1000. height: 48px;
  1001. display: -webkit-box;
  1002. -webkit-box-orient: vertical;
  1003. -webkit-line-clamp: 2;
  1004. overflow: hidden;
  1005. text-overflow: ellipsis;
  1006. word-break: break-all;
  1007. font-family: Microsoft YaHei, Microsoft YaHei;
  1008. font-weight: bold;
  1009. font-size: 18px;
  1010. color: #333333;
  1011. }
  1012. }
  1013. .top:hover {
  1014. a .title1 {
  1015. color: #a01c0e;
  1016. }
  1017. }
  1018. .bottom {
  1019. width: 350px;
  1020. margin-top: 25px;
  1021. .bottom_left {
  1022. float: left;
  1023. width: 165px;
  1024. img {
  1025. width: 165px;
  1026. height: 96px;
  1027. }
  1028. a .title2 {
  1029. margin-top: 10px;
  1030. width: 165px;
  1031. height: 48px;
  1032. display: -webkit-box;
  1033. -webkit-box-orient: vertical;
  1034. -webkit-line-clamp: 2;
  1035. overflow: hidden;
  1036. text-overflow: ellipsis;
  1037. word-break: break-all;
  1038. font-family: Microsoft YaHei, Microsoft YaHei;
  1039. font-weight: 400;
  1040. font-size: 18px;
  1041. color: #333333;
  1042. }
  1043. }
  1044. .bottom_left:first-child {
  1045. margin-right: 20px;
  1046. }
  1047. }
  1048. .bottom_left:hover {
  1049. a .title2 {
  1050. color: #a01c0e;
  1051. }
  1052. }
  1053. }
  1054. .context_right {
  1055. float: right;
  1056. width: 350px;
  1057. .rightContent {
  1058. width: 350px;
  1059. height: 230px;
  1060. .context1:nth-child(5n+1) {
  1061. width: 345px;
  1062. white-space: nowrap;
  1063. overflow: hidden;
  1064. text-overflow: ellipsis;
  1065. font-family: Microsoft YaHei, Microsoft YaHei;
  1066. font-weight: bold;
  1067. font-size: 18px;
  1068. color: #333333;
  1069. a {
  1070. color: #333333;
  1071. }
  1072. }
  1073. .context1:nth-child(5n+1):hover a {
  1074. color: #a01c0e;
  1075. }
  1076. .context1 {
  1077. margin-bottom: 27px;
  1078. width: 345px;
  1079. white-space: nowrap;
  1080. overflow: hidden;
  1081. text-overflow: ellipsis;
  1082. font-family: Microsoft YaHei, Microsoft YaHei;
  1083. font-weight: 400;
  1084. font-size: 18px;
  1085. color: #333333;
  1086. a {
  1087. color: #333333;
  1088. }
  1089. }
  1090. .context1:hover a {
  1091. color: #a01c0e;
  1092. }
  1093. }
  1094. }
  1095. }
  1096. }
  1097. .part1_right {
  1098. float: right;
  1099. width: 450px;
  1100. // height: 1000px;
  1101. .part1_right_title {
  1102. width: 450px;
  1103. height: 50px;
  1104. line-height: 50px;
  1105. .part1_right_title1_active {
  1106. float: left;
  1107. margin-right: 40px;
  1108. font-family: Microsoft YaHei, Microsoft YaHei;
  1109. font-weight: 400;
  1110. font-size: 20px;
  1111. color: #333333;
  1112. position: relative;
  1113. a {
  1114. color: #333333;
  1115. }
  1116. .active_bg {
  1117. display: inline-block;
  1118. width: 8px;
  1119. height: 8px;
  1120. background-color: #a01c0e;
  1121. border-radius: 4px;
  1122. position: absolute;
  1123. top: 7px;
  1124. right: -5px;
  1125. }
  1126. }
  1127. .part1_right_title1 {
  1128. float: left;
  1129. margin-right: 40px;
  1130. font-family: Microsoft YaHei, Microsoft YaHei;
  1131. font-weight: 400;
  1132. font-size: 20px;
  1133. color: #999999;
  1134. position: relative;
  1135. a {
  1136. color: #999999;
  1137. }
  1138. }
  1139. }
  1140. .part1_right_content {
  1141. width: 450px;
  1142. // height: 940px;
  1143. margin-top: 20px;
  1144. .part1_right_content_top {
  1145. float: left;
  1146. width: 220px;
  1147. height: 180px;
  1148. a img {
  1149. width: 220px;
  1150. height: 130px;
  1151. }
  1152. a .content_top_title2 {
  1153. display: inline-block;
  1154. width: 220px;
  1155. padding: 0 10px;
  1156. box-sizing: border-box;
  1157. white-space: nowrap;
  1158. overflow: hidden;
  1159. text-overflow: ellipsis;
  1160. font-family: Microsoft YaHei, Microsoft YaHei;
  1161. font-weight: 400;
  1162. font-size: 18px;
  1163. color: #333333;
  1164. margin-top: 10px;
  1165. }
  1166. }
  1167. .part1_right_content_top:hover {
  1168. a .content_top_title2 {
  1169. color: #a01c0e;
  1170. }
  1171. }
  1172. .part1_right_content_top:nth-child(2) {
  1173. margin-left: 10px;
  1174. }
  1175. .part1_right_content_bottom {
  1176. width: 450px;
  1177. height: 300px;
  1178. margin-top: 20px;
  1179. overflow: hidden;
  1180. .content_bottom_list {
  1181. width: 450px;
  1182. height: 22px;
  1183. line-height: 21px;
  1184. white-space: nowrap;
  1185. overflow: hidden;
  1186. text-overflow: ellipsis;
  1187. margin-top: 28px;
  1188. font-family: Microsoft YaHei, Microsoft YaHei;
  1189. font-weight: 400;
  1190. font-size: 18px;
  1191. color: #333333;
  1192. a {
  1193. color: #333333;
  1194. }
  1195. }
  1196. .content_bottom_list:hover {
  1197. a {
  1198. color: #a01c0e;
  1199. }
  1200. }
  1201. }
  1202. }
  1203. }
  1204. }
  1205. }
  1206. //第二部分
  1207. .part2 {
  1208. width: 100%;
  1209. overflow: hidden;
  1210. // margin-bottom: 40px;
  1211. .inner {
  1212. width: 1200px;
  1213. margin: 0 auto;
  1214. .part2_left {
  1215. float: left;
  1216. width: 720px;
  1217. .part2_title {
  1218. width: 720px;
  1219. height: 50px;
  1220. line-height: 50px;
  1221. .nav_part2_left {
  1222. float: left;
  1223. width: 100px;
  1224. font-family: Microsoft YaHei, Microsoft YaHei;
  1225. font-weight: 400;
  1226. font-size: 20px;
  1227. color: #333333;
  1228. position: relative;
  1229. a {
  1230. color: #333333;
  1231. }
  1232. em {
  1233. display: inline-block;
  1234. width: 8px;
  1235. height: 8px;
  1236. background-color: #a01c0e;
  1237. border-radius: 4px;
  1238. position: absolute;
  1239. top: 9px;
  1240. right: 6px;
  1241. }
  1242. }
  1243. }
  1244. .part2_content {
  1245. width: 720px;
  1246. margin-top: 20px;
  1247. .part2_content_left {
  1248. float: left;
  1249. width: 350px;
  1250. .content_a {
  1251. width: 350px;
  1252. height: 230px;
  1253. // margin-bottom: 25px;
  1254. .context111:nth-child(5n+1) {
  1255. width: 345px;
  1256. white-space: nowrap;
  1257. overflow: hidden;
  1258. text-overflow: ellipsis;
  1259. font-family: Microsoft YaHei, Microsoft YaHei;
  1260. font-weight: bold;
  1261. font-size: 18px;
  1262. color: #333333;
  1263. a {
  1264. color: #333333;
  1265. }
  1266. }
  1267. .context111 {
  1268. margin-bottom: 27px;
  1269. width: 345px;
  1270. white-space: nowrap;
  1271. overflow: hidden;
  1272. text-overflow: ellipsis;
  1273. font-family: Microsoft YaHei, Microsoft YaHei;
  1274. font-weight: 400;
  1275. font-size: 18px;
  1276. color: #333333;
  1277. a {
  1278. color: #333333;
  1279. }
  1280. }
  1281. .context111:hover a {
  1282. color: #a01c0e;
  1283. }
  1284. }
  1285. }
  1286. .part2_content_right {
  1287. float: right;
  1288. width: 350px;
  1289. height: 480px;
  1290. .right_top {
  1291. width: 350px;
  1292. height: 300px;
  1293. a img {
  1294. width: 350px;
  1295. height: 230px;
  1296. }
  1297. a .title11 {
  1298. margin-top: 15px;
  1299. width: 350px;
  1300. height: 48px;
  1301. display: -webkit-box;
  1302. -webkit-box-orient: vertical;
  1303. -webkit-line-clamp: 2;
  1304. overflow: hidden;
  1305. text-overflow: ellipsis;
  1306. word-break: break-all;
  1307. font-family: Microsoft YaHei, Microsoft YaHei;
  1308. font-weight: bold;
  1309. font-size: 18px;
  1310. color: #333333;
  1311. }
  1312. }
  1313. .right_top:hover {
  1314. color: #a01c0e;
  1315. a .title11 {
  1316. color: #a01c0e;
  1317. }
  1318. }
  1319. .right_bottom {
  1320. width: 350px;
  1321. height: 165px;
  1322. margin-top: 20px;
  1323. .bottom_left {
  1324. float: left;
  1325. width: 165px;
  1326. height: 130px;
  1327. a img {
  1328. width: 165px;
  1329. height: 96px;
  1330. }
  1331. a .title22 {
  1332. margin-top: 10px;
  1333. width: 165px;
  1334. height: 48px;
  1335. display: -webkit-box;
  1336. -webkit-box-orient: vertical;
  1337. -webkit-line-clamp: 2;
  1338. overflow: hidden;
  1339. text-overflow: ellipsis;
  1340. word-break: break-all;
  1341. font-family: Microsoft YaHei, Microsoft YaHei;
  1342. font-weight: 400;
  1343. font-size: 18px;
  1344. color: #333333;
  1345. }
  1346. }
  1347. .bottom_left:hover {
  1348. color: #a01c0e;
  1349. a .title22 {
  1350. color: #a01c0e;
  1351. }
  1352. }
  1353. .bottom_left:first-child {
  1354. margin-right: 20px;
  1355. }
  1356. }
  1357. }
  1358. }
  1359. }
  1360. .part2_right {
  1361. float: right;
  1362. width: 450px;
  1363. // height: 1000px;
  1364. .part2_right_title {
  1365. width: 450px;
  1366. height: 50px;
  1367. line-height: 50px;
  1368. .part2_right_title1_active {
  1369. float: left;
  1370. margin-right: 40px;
  1371. font-family: Microsoft YaHei, Microsoft YaHei;
  1372. font-weight: 400;
  1373. font-size: 20px;
  1374. color: #333333;
  1375. position: relative;
  1376. a {
  1377. color: #333333;
  1378. }
  1379. .active_bg11 {
  1380. display: inline-block;
  1381. width: 8px;
  1382. height: 8px;
  1383. background-color: #a01c0e;
  1384. border-radius: 4px;
  1385. position: absolute;
  1386. top: 7px;
  1387. right: -5px;
  1388. }
  1389. }
  1390. .part2_right_title1 {
  1391. float: left;
  1392. margin-right: 40px;
  1393. font-family: Microsoft YaHei, Microsoft YaHei;
  1394. font-weight: 400;
  1395. font-size: 20px;
  1396. color: #999999;
  1397. position: relative;
  1398. a {
  1399. color: #999999;
  1400. }
  1401. }
  1402. }
  1403. .part2_right_content {
  1404. width: 450px;
  1405. margin-top: 20px;
  1406. .part2_right_content_top {
  1407. float: left;
  1408. width: 220px;
  1409. height: 180px;
  1410. a img {
  1411. width: 220px;
  1412. height: 130px;
  1413. }
  1414. a .content_top_title22 {
  1415. display: inline-block;
  1416. width: 220px;
  1417. padding: 0 10px;
  1418. box-sizing: border-box;
  1419. white-space: nowrap;
  1420. overflow: hidden;
  1421. text-overflow: ellipsis;
  1422. font-family: Microsoft YaHei, Microsoft YaHei;
  1423. font-weight: 400;
  1424. font-size: 18px;
  1425. color: #333333;
  1426. margin-top: 10px;
  1427. }
  1428. }
  1429. .part2_right_content_top:hover {
  1430. a .content_top_title22 {
  1431. color: #a01c0e;
  1432. }
  1433. }
  1434. .part2_right_content_top:nth-child(2) {
  1435. margin-left: 10px;
  1436. }
  1437. .part2_right_content_bottom {
  1438. width: 450px;
  1439. height: 300px;
  1440. margin-top: 20px;
  1441. overflow: hidden;
  1442. .content_bottom_list {
  1443. width: 450px;
  1444. height: 22px;
  1445. line-height: 21px;
  1446. white-space: nowrap;
  1447. overflow: hidden;
  1448. text-overflow: ellipsis;
  1449. margin-top: 28px;
  1450. font-family: Microsoft YaHei, Microsoft YaHei;
  1451. font-weight: 400;
  1452. font-size: 18px;
  1453. color: #333333;
  1454. a {
  1455. color: #333333;
  1456. }
  1457. }
  1458. .content_bottom_list:hover {
  1459. a {
  1460. color: #a01c0e;
  1461. }
  1462. }
  1463. }
  1464. }
  1465. }
  1466. }
  1467. }
  1468. //第三部分
  1469. .part3 {
  1470. width: 100%;
  1471. overflow: hidden;
  1472. // height: 1200px;
  1473. margin-top: 35px;
  1474. margin-bottom: 40px;
  1475. .inner {
  1476. width: 1200px;
  1477. height: 1200px;
  1478. background-color: #fff;
  1479. .part3_left {
  1480. float: left;
  1481. .part3_left_top {
  1482. width: 720px;
  1483. overflow: hidden;
  1484. .part3_leftTitle {
  1485. width: 720px;
  1486. height: 50px;
  1487. line-height: 50px;
  1488. .part3_left_title:first-child {
  1489. float: left;
  1490. margin-right: 20px;
  1491. width: 100px;
  1492. height: 50px;
  1493. line-height: 50px;
  1494. position: relative;
  1495. font-family: Microsoft YaHei, Microsoft YaHei;
  1496. font-weight: 400;
  1497. font-size: 20px;
  1498. color: #333333;
  1499. a {
  1500. color: #333333;
  1501. }
  1502. em {
  1503. display: inline-block;
  1504. width: 8px;
  1505. height: 8px;
  1506. background-color: #a01c0e;
  1507. border-radius: 4px;
  1508. position: absolute;
  1509. top: 9px;
  1510. right: 6px;
  1511. }
  1512. }
  1513. .part3_left_title {
  1514. float: left;
  1515. margin-right: 20px;
  1516. width: 100px;
  1517. height: 50px;
  1518. line-height: 50px;
  1519. position: relative;
  1520. font-family: Microsoft YaHei, Microsoft YaHei;
  1521. font-weight: 400;
  1522. font-size: 20px;
  1523. color: #999999;
  1524. a {
  1525. color: #999999;
  1526. }
  1527. // em{
  1528. // display: inline-block;
  1529. // width: 8px;
  1530. // height: 8px;
  1531. // background-color: #a01c0e;
  1532. // border-radius: 4px;
  1533. // position: absolute;
  1534. // top: 9px;
  1535. // right: 6px;
  1536. // }
  1537. }
  1538. }
  1539. .part3_left_content {
  1540. width: 720px;
  1541. margin-top: 20px;
  1542. .part3_left_content_top {
  1543. .content_top_left {
  1544. float: left;
  1545. width: 350px;
  1546. height: 484px;
  1547. .part3_photo_text {
  1548. width: 350px;
  1549. position: relative;
  1550. img {
  1551. width: 350px;
  1552. height: 230px;
  1553. }
  1554. .littleTips {
  1555. display: inline-block;
  1556. width: 50px;
  1557. height: 26px;
  1558. line-height: 26px;
  1559. text-align: center;
  1560. background-color: #a01c0e;
  1561. font-family: Microsoft YaHei, Microsoft YaHei;
  1562. font-weight: 400;
  1563. font-size: 16px;
  1564. color: #fff;
  1565. position: absolute;
  1566. top: 0;
  1567. right: 10px;
  1568. }
  1569. .part3_text {
  1570. display: inline-block;
  1571. width: 350px;
  1572. height: 26px;
  1573. white-space: nowrap;
  1574. overflow: hidden;
  1575. text-overflow: ellipsis;
  1576. font-family: Microsoft YaHei, Microsoft YaHei;
  1577. font-weight: bold;
  1578. font-size: 18px;
  1579. color: #333333;
  1580. margin-top: 15px;
  1581. }
  1582. }
  1583. .part3_photo_text:hover {
  1584. .part3_text {
  1585. color: #a01c0e;
  1586. }
  1587. }
  1588. .part3_content {
  1589. width: 350px;
  1590. .part3_content_list:first-child {
  1591. width: 350px;
  1592. height: 25px;
  1593. white-space: nowrap;
  1594. overflow: hidden;
  1595. text-overflow: ellipsis;
  1596. font-family: Microsoft YaHei, Microsoft YaHei;
  1597. font-weight: bold;
  1598. font-size: 18px;
  1599. color: #333333;
  1600. line-height: 22px;
  1601. margin-top: 35px;
  1602. a {
  1603. color: #333333;
  1604. }
  1605. }
  1606. .part3_content_list:first-child:hover {
  1607. a {
  1608. color: #a01c0e;
  1609. }
  1610. }
  1611. .part3_content_list:last-child {
  1612. margin-bottom: 0;
  1613. }
  1614. .part3_content_list {
  1615. width: 350px;
  1616. height: 25px;
  1617. white-space: nowrap;
  1618. overflow: hidden;
  1619. text-overflow: ellipsis;
  1620. font-family: Microsoft YaHei, Microsoft YaHei;
  1621. font-weight: 400;
  1622. font-size: 18px;
  1623. color: #333333;
  1624. line-height: 22px;
  1625. margin-bottom: 27px;
  1626. a {
  1627. color: #333333;
  1628. }
  1629. }
  1630. .part3_content_list:hover {
  1631. a {
  1632. color: #a01c0e;
  1633. }
  1634. }
  1635. }
  1636. }
  1637. .content_top_right {
  1638. float: left;
  1639. width: 350px;
  1640. height: 542px;
  1641. border: 1px solid #D9D9D9;
  1642. margin-left: 20px;
  1643. padding: 30px 25px;
  1644. box-sizing: border-box;
  1645. .content_right_list {
  1646. width: 350px;
  1647. height: 58px;
  1648. line-height: 58px;
  1649. margin-bottom: 48px;
  1650. .part3_time {
  1651. float: left;
  1652. width: 77px;
  1653. height: 58px;
  1654. color: #a01c0e;
  1655. .month {
  1656. font-family: Microsoft YaHei, Microsoft YaHei;
  1657. font-weight: 400;
  1658. font-size: 26px;
  1659. color: #A01C0E;
  1660. line-height: 30px;
  1661. }
  1662. .xiegang {
  1663. font-size: 22px;
  1664. font-weight: 400;
  1665. }
  1666. .day {
  1667. font-family: Microsoft YaHei, Microsoft YaHei;
  1668. font-weight: 400;
  1669. font-size: 16px;
  1670. color: #A01C0E;
  1671. line-height: 19px;
  1672. }
  1673. }
  1674. .time_left_content {
  1675. float: left;
  1676. width: 231px;
  1677. height: 58px;
  1678. display: -webkit-box;
  1679. -webkit-box-orient: vertical;
  1680. -webkit-line-clamp: 2;
  1681. overflow: hidden;
  1682. text-overflow: ellipsis;
  1683. word-break: break-all;
  1684. line-height: 22px;
  1685. padding-top: 12px;
  1686. box-sizing: border-box;
  1687. font-family: Microsoft YaHei, Microsoft YaHei;
  1688. font-weight: 400;
  1689. font-size: 18px;
  1690. color: #333333;
  1691. border-left: 1px solid #D9D9D9;
  1692. padding-left: 22px;
  1693. a {
  1694. color: #333333;
  1695. }
  1696. a:hover {
  1697. color: #a01c0e;
  1698. }
  1699. }
  1700. }
  1701. .content_right_list:hover {
  1702. .time_left_content {
  1703. color: #a01c0e;
  1704. }
  1705. }
  1706. }
  1707. }
  1708. }
  1709. }
  1710. .part3_left_bottom {
  1711. width: 720px;
  1712. margin-top: 25px;
  1713. .part3_leftTitle1 {
  1714. width: 720px;
  1715. height: 50px;
  1716. line-height: 50px;
  1717. margin-bottom: 25px;
  1718. .part3_left_title_active {
  1719. float: left;
  1720. margin-right: 20px;
  1721. width: 100px;
  1722. height: 50px;
  1723. line-height: 50px;
  1724. position: relative;
  1725. font-family: Microsoft YaHei, Microsoft YaHei;
  1726. font-weight: 400;
  1727. font-size: 20px;
  1728. color: #333333;
  1729. a.active {
  1730. color: #333333;
  1731. }
  1732. em {
  1733. display: inline-block;
  1734. width: 8px;
  1735. height: 8px;
  1736. background-color: #a01c0e;
  1737. border-radius: 4px;
  1738. position: absolute;
  1739. top: 9px;
  1740. right: 6px;
  1741. }
  1742. }
  1743. .part3_left_title {
  1744. float: left;
  1745. margin-right: 20px;
  1746. width: 100px;
  1747. height: 50px;
  1748. line-height: 50px;
  1749. position: relative;
  1750. font-family: Microsoft YaHei, Microsoft YaHei;
  1751. font-weight: 400;
  1752. font-size: 20px;
  1753. color: #999999;
  1754. a {
  1755. color: #999999;
  1756. }
  1757. // em{
  1758. // display: inline-block;
  1759. // width: 8px;
  1760. // height: 8px;
  1761. // background-color: #a01c0e;
  1762. // border-radius: 4px;
  1763. // position: absolute;
  1764. // top: 9px;
  1765. // right: 6px;
  1766. // }
  1767. }
  1768. }
  1769. .part3_left_content1 {
  1770. width: 720px;
  1771. .content_bottom_left {
  1772. float: left;
  1773. width: 350px;
  1774. // height: 350px;
  1775. .content_top {
  1776. width: 350px;
  1777. img {
  1778. width: 350px;
  1779. height: 230px;
  1780. }
  1781. .part3_text {
  1782. display: inline-block;
  1783. width: 350px;
  1784. height: 50px;
  1785. line-height: 22px;
  1786. display: -webkit-box;
  1787. -webkit-box-orient: vertical;
  1788. -webkit-line-clamp: 2;
  1789. overflow: hidden;
  1790. text-overflow: ellipsis;
  1791. word-break: break-all;
  1792. margin-top: 15px;
  1793. font-family: Microsoft YaHei, Microsoft YaHei;
  1794. font-weight: bold;
  1795. font-size: 18px;
  1796. color: #333333
  1797. }
  1798. }
  1799. .content_top:hover {
  1800. .part3_text {
  1801. color: #a01c0e;
  1802. }
  1803. }
  1804. .content_bottom {
  1805. width: 350px;
  1806. margin-top: 20px;
  1807. .content_bottom_1 {
  1808. float: left;
  1809. width: 165px;
  1810. img {
  1811. width: 165px;
  1812. height: 96px;
  1813. }
  1814. .part3_text {
  1815. display: inline-block;
  1816. width: 165px;
  1817. height: 44px;
  1818. line-height: 22px;
  1819. display: -webkit-box;
  1820. -webkit-box-orient: vertical;
  1821. -webkit-line-clamp: 2;
  1822. overflow: hidden;
  1823. text-overflow: ellipsis;
  1824. word-break: break-all;
  1825. font-family: Microsoft YaHei, Microsoft YaHei;
  1826. font-weight: 400;
  1827. font-size: 18px;
  1828. color: #333333;
  1829. margin-top: 10px;
  1830. }
  1831. }
  1832. .content_bottom_1:hover {
  1833. .part3_text {
  1834. color: #a01c0e;
  1835. }
  1836. }
  1837. .content_bottom_1:first-child {
  1838. margin-right: 20px;
  1839. }
  1840. }
  1841. }
  1842. .content_bottom_right {
  1843. float: left;
  1844. margin-left: 20px;
  1845. width: 350px;
  1846. .bottom_content_1 {
  1847. width: 350px;
  1848. .bottom_content_list:nth-child(5n+1) {
  1849. font-weight: bold;
  1850. }
  1851. .bottom_content_list {
  1852. width: 350px;
  1853. height: 25px;
  1854. white-space: nowrap;
  1855. overflow: hidden;
  1856. text-overflow: ellipsis;
  1857. font-family: Microsoft YaHei, Microsoft YaHei;
  1858. font-weight: 400;
  1859. font-size: 18px;
  1860. color: #333333;
  1861. line-height: 21px;
  1862. margin-bottom: 25px;
  1863. a {
  1864. color: #333333;
  1865. }
  1866. }
  1867. .bottom_content_list:hover {
  1868. a {
  1869. color: #a01c0e;
  1870. }
  1871. }
  1872. }
  1873. .bottom_content_1:first-child {
  1874. margin-bottom: 20px;
  1875. }
  1876. .bottom_content_1:last-child {
  1877. .bottom_content_list:last-child {
  1878. margin-bottom: 0;
  1879. }
  1880. }
  1881. }
  1882. }
  1883. }
  1884. }
  1885. .part3_right {
  1886. float: right;
  1887. width: 451px;
  1888. .part3_rightTitle {
  1889. width: 451px;
  1890. height: 50px;
  1891. line-height: 50px;
  1892. .part3_right_title:first-child {
  1893. float: left;
  1894. margin-right: 20px;
  1895. width: 100px;
  1896. height: 50px;
  1897. line-height: 50px;
  1898. position: relative;
  1899. font-family: Microsoft YaHei, Microsoft YaHei;
  1900. font-weight: 400;
  1901. font-size: 20px;
  1902. color: #333333;
  1903. a {
  1904. color: #333333;
  1905. }
  1906. em {
  1907. display: inline-block;
  1908. width: 8px;
  1909. height: 8px;
  1910. background-color: #a01c0e;
  1911. border-radius: 4px;
  1912. position: absolute;
  1913. top: 9px;
  1914. right: 6px;
  1915. }
  1916. }
  1917. .part3_right_title {
  1918. float: left;
  1919. margin-right: 20px;
  1920. width: 100px;
  1921. height: 50px;
  1922. line-height: 50px;
  1923. position: relative;
  1924. font-family: Microsoft YaHei, Microsoft YaHei;
  1925. font-weight: 400;
  1926. font-size: 20px;
  1927. color: #999999;
  1928. a {
  1929. color: #999999;
  1930. }
  1931. // em{
  1932. // display: inline-block;
  1933. // width: 8px;
  1934. // height: 8px;
  1935. // background-color: #a01c0e;
  1936. // border-radius: 4px;
  1937. // position: absolute;
  1938. // top: 9px;
  1939. // right: 6px;
  1940. // }
  1941. }
  1942. .rightMore {
  1943. float: right;
  1944. font-family: Microsoft YaHei, Microsoft YaHei;
  1945. font-weight: 400;
  1946. font-size: 12px;
  1947. color: #999999;
  1948. a {
  1949. color: #999999;
  1950. }
  1951. }
  1952. }
  1953. .part3_right_content_top {
  1954. width: 451px;
  1955. margin-top: 20px;
  1956. .part3_right_contentlist_top {
  1957. font-family: Microsoft YaHei, Microsoft YaHei;
  1958. font-weight: 400;
  1959. font-size: 18px;
  1960. color: #333333;
  1961. width: 425px;
  1962. height: 25px;
  1963. white-space: nowrap;
  1964. overflow: hidden;
  1965. text-overflow: ellipsis;
  1966. margin-bottom: 25px;
  1967. a {
  1968. color: #333333;
  1969. }
  1970. .numStyle {
  1971. display: inline-block;
  1972. width: 22px;
  1973. height: 22px;
  1974. background-color: #f6f6f6;
  1975. text-align: center;
  1976. margin-right: 20px;
  1977. font-family: Protest Strike, Protest Strike;
  1978. font-weight: 400;
  1979. font-size: 16px;
  1980. color: #CCCCCC;
  1981. border-radius: 4px;
  1982. }
  1983. }
  1984. .part3_right_contentlist_top:hover {
  1985. color: #a01c0e;
  1986. a {
  1987. color: #a01c0e;
  1988. }
  1989. }
  1990. .part3_right_contentlist_top:nth-child(1) {
  1991. .numStyle {
  1992. background-color: #a01c0e;
  1993. color: #fff;
  1994. }
  1995. }
  1996. .part3_right_contentlist_top:nth-child(2) {
  1997. .numStyle {
  1998. background-color: #FFC62E;
  1999. color: #fff;
  2000. }
  2001. }
  2002. .part3_right_contentlist_top:nth-child(3) {
  2003. .numStyle {
  2004. background-color: #e98008;
  2005. color: #fff;
  2006. }
  2007. }
  2008. .part3_right_contentlist_top:last-child {
  2009. margin-bottom: 10px;
  2010. }
  2011. }
  2012. .part3_photo_text_right {
  2013. width: 451px;
  2014. height: 120px;
  2015. margin-top: 35px;
  2016. margin-bottom: 35px;
  2017. background-color: #f6f3f0;
  2018. .part3_text11 {
  2019. float: left;
  2020. width: 271px;
  2021. height: 96px;
  2022. display: -webkit-box;
  2023. -webkit-box-orient: vertical;
  2024. -webkit-line-clamp: 3;
  2025. overflow: hidden;
  2026. text-overflow: ellipsis;
  2027. word-break: break-all;
  2028. font-family: Microsoft YaHei, Microsoft YaHei;
  2029. font-weight: 400;
  2030. font-size: 18px;
  2031. color: #333333;
  2032. padding: 25px 20px;
  2033. box-sizing: border-box;
  2034. }
  2035. img {
  2036. float: left;
  2037. width: 180px;
  2038. height: 120px;
  2039. }
  2040. }
  2041. .part3_photo_text_right:hover {
  2042. color: #a01c0e;
  2043. .part3_text11 {
  2044. color: #a01c0e;
  2045. }
  2046. }
  2047. .part3_right_content_11 {
  2048. width: 451px;
  2049. .part3_right_contentlist_11 {
  2050. width: 451px;
  2051. height: 25px;
  2052. white-space: nowrap;
  2053. overflow: hidden;
  2054. text-overflow: ellipsis;
  2055. font-family: Microsoft YaHei, Microsoft YaHei;
  2056. font-weight: 400;
  2057. font-size: 18px;
  2058. color: #333333;
  2059. line-height: 21px;
  2060. .erjibiaoti {
  2061. display: inline-block;
  2062. width: 87px;
  2063. height: 24px;
  2064. font-family: Microsoft YaHei, Microsoft YaHei;
  2065. font-weight: 400;
  2066. font-size: 18px;
  2067. color: #A01C0E;
  2068. border-right: #D3D5D8 1px solid;
  2069. margin-right: 10px;
  2070. }
  2071. a {
  2072. color: #333333;
  2073. }
  2074. }
  2075. .part3_right_contentlist_11:hover {
  2076. color: #a01c0e;
  2077. a {
  2078. color: #a01c0e;
  2079. }
  2080. }
  2081. .part3_right_contentlist_11:first-child {
  2082. margin-bottom: 25px;
  2083. }
  2084. }
  2085. }
  2086. }
  2087. }
  2088. </style>